package API.DAY7.thread;

public class ThreadDemo1 {
    public static void main(String[] args) {
        Thread mt = new MyThread();
        Thread mt2 = new MyThread2();
        mt.start();
        mt2.start();
    }
}
class MyThread extends Thread{
    public void run(){
        for (int i = 0; i < 1000; i++){
            System.out.println("你好");
        }
    }
}
class MyThread2 extends Thread{
    public void run(){
        for (int i = 0; i < 1000; i++){
            System.out.println("我不好");
        }
    }
}